package work.mediway.mdm.biz.entity.biz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

import javax.validation.constraints.NotBlank;

import cn.hutool.core.collection.CollUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 对接系统配置表
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2022/6/22
 */
@ApiModel(value = "对接系统配置表")
@Data
@TableName(value = "SS_InterSystems")
public class SsInterSystems {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 系统代码
     */
    @TableField(value = "SSIS_Code")
    @ApiModelProperty(value = "系统代码")
    private String ssisCode;

    /**
     * 系统名称
     */
    @NotBlank(message = "不能为空")
    @TableField(value = "SSIS_Desc")
    @ApiModelProperty(value = "系统名称", required = true)
    private String ssisDesc;

    /**
     * 所属厂商
     */
    @NotBlank(message = "不能为空")
    @TableField(value = "SSIS_Manufacturer")
    @ApiModelProperty(value = "所属厂商", required = true)
    private String ssisManufacturer;

    /**
     * 状态
     */
    @TableField(value = "SSIS_Status")
    @ApiModelProperty(value = "状态", allowableValues = "-1,0,1")
    private String ssisStatus;

    /**
     * 更新人
     */
    @TableField(value = "SSIS_UpdateUserCode")
    @ApiModelProperty(value = "更新人", hidden = true)
    private String ssisUpdateUserCode;

    /**
     * 更新日期
     */
    @TableField(value = "SSIS_UpdateDate")
    @ApiModelProperty(value = "更新日期", hidden = true)
    private String ssisUpdateDate;

    /**
     * 更新时间
     */
    @TableField(value = "SSIS_UpdateTime")
    @ApiModelProperty(value = "更新时间", hidden = true)
    private String ssisUpdateTime;

    /**
     * 表名
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "表名")
    private String tableCode;

    @TableField(exist = false)
    @ApiModelProperty(value = "服务id集合", hidden = true)
    private List<String> messageServiceIds = CollUtil.newArrayList();

    @TableField(exist = false)
    @ApiModelProperty(value = "数量", hidden = true)
    private Integer count;
}